package com.tiezhu.springdemo.mapper;

import com.tiezhu.springdemo.bean.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper {

    List<Product> queryProductByOwnerName(String owner_name);

    List<Product> queryProductByProductId(int product_id);

    int addProduct(Product product);

    int updateProduct(Product product);

    int deleteProductByProductId(Product product);
}
